<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<input type="hidden" id="contextPath" value="${pageContext.request.contextPath}" />
<%@page import="com.fast.base.util.PropertiesUtils" %>
<%
    response.setHeader("Pragma","No-cache");
	response.setHeader("Cache-Control","no-cache");
	response.setDateHeader("Expires", 0);
	String path     = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	if(request.getServerPort()==80){
		basePath = request.getScheme()+"://"+request.getServerName()+path+"/";
	}
	String fileAppUrl = PropertiesUtils.getCoreContextProperty("fileApp");
%>
<script type="text/javascript">
   function getBasePath(){
	   var basePath= $("#basepath").val();
	   return basePath;
   }
   
   function getImgPath(){
	   var basePath= $("#fileServerPath").val();
	   return basePath;
   }
   
   function getVerificationCode(){
	   var code= $("#verificationCode").val();
	   return code;
   }
</script>
<input type="hidden" id="basepath" value="<%=basePath %>" >
<input type="hidden" id="verificationCode" value="${sessionScope.verificationCode }" >
<input type="hidden" id="fileServerPath" value="<%=fileAppUrl %>" />
